<template>
	<view>
		<view class="" style="width: 750rpx;background: linear-gradient( to bottom, #E93548 0%, #F35B43 100%);" :style="{ height: `${statusBarHeight+44}px`}">
			<view :style="{ height: `${statusBarHeight}px`}">
				
			</view>
			<view class="flex-row-flex-start" style="height: 88rpx;">
				<image @click="navbackClick" style="margin-left: 24rpx;width: 31rpx;height: 31rpx;" src="/static/my/mine_whiteleftarrow.png"></image>
				<view style="width: 640rpx;text-align: center;font-family: PingFang SC, PingFang SC;font-weight: 500;font-size: 36rpx;color: #FFFFFF;">
					{{title}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"navBarView",
		props: {
			title: {
				type: String,
				default: ''
			},
			statusBarHeight:{
				type: Number,
				default: ''
			}
		},
		data() {
			return {
				
			};
		},
		created() {
			
		},
		methods:{
			navbackClick(){
				uni.navigateBack({
					fail: (error) => {
						uni.switchTab({
							url:'/pages/index/index'
						})
					}
				})
			}
		}
	}
</script>

<style>

</style>